import request from '@/utils/request'

// 按年区间查 收支
export function getStatisticsByYear(query) {
  return request({
    url: 'api/finance/statistics/year',
    method: 'get',
    params: query
  })
}

// 按月区间查 收支
export function getStatisticsByMonth(query) {
  return request({
    url: 'api/finance/statistics/month',
    method: 'get',
    params: query
  })
}

// 按天区间查 收支
export function getStatisticsByDay(query) {
  return request({
    url: 'api/finance/statistics/day',
    method: 'get',
    params: query
  })
}